import React from 'react';
import './App.css';
import {Route,Switch,Redirect} from "react-router-dom"
import home from "./components/home/home"
import NotFound from "./components/notfound/NotFound"
import Detail from "./components/detail";
class App extends React.Component{
  
  render(){
     return (
    <div className="App">
      <Switch>
        <Route path="/home" component={home}/>
        <Route path="/detail" component={Detail}/>
        <Redirect from="/" to="/home" exact/>
        <Route component={NotFound}/>
      </Switch>
      
    </div>
  );
}
  }
 

export default App;
